/**
 * 其他模块
 */
import { service, paramsQuery } from './request';

/**
 * 创意审核
 */
// 创意审核/待审核创意列表
export function fetchOtherCreativeAuditUnfinished(params) {
  let ret = paramsQuery('/manage/api/bus/creative/audit/get_wait_creative_list', params);
  return service.post(ret.path, ret.body);
}

// 创意审核/已审核创意列表
export function fetchOtherCreativeAuditFinished(params) {
  let ret = paramsQuery('/manage/api/bus/creative/audit/get_audit_complete_creative_list', params);
  return service.post(ret.path, ret.body);
}

// 创意审核/待审核创意列表ID
export function fetchOtherCreativeAuditUnfinishedID() {
  let ret = paramsQuery('/manage/api/bus/creative/audit/get_wait_creative_id_list');
  return service.post(ret.path, ret.body);
}

// 创意审核/待审核详情
export function fetchOtherCreativeUnfinishedDetail(params) {
  let ret = paramsQuery('/manage/api/bus/creative/audit/get_wait_creative', params);
  return service.post(ret.path, ret.body);
}

// 创意审核/已审核详情
export function fetchOtherCreativeFinishedDetail(params) {
  let ret = paramsQuery('/manage/api/bus/creative/audit/get_audit_complete_creative', params);
  return service.post(ret.path, ret.body);
}

// 创意审核/通过
export function fetchOtherCreativeAuditPass(params) {
  let ret = paramsQuery('/manage/api/bus/creative/audit/audit_pass', params);
  return service.post(ret.path, ret.body);
}

// 创意审核/拒绝
export function fetchOtherCreativeAuditUnpass(params) {
  let ret = paramsQuery('/manage/api/bus/creative/audit/audit_unpass', params);
  return service.post(ret.path, ret.body);
}

/**
 * 直客审核
 */
// 直客审核/待审核创意列表
export function fetchOtherCustomerAuditUnfinished(params) {
  let ret = paramsQuery('/manage/api/bus/aptitude/audit/get_wait_aptitude_list', params);
  return service.post(ret.path, ret.body);
}

// 直客审核/已审核创意列表
export function fetchOtherCustomerAuditFinished(params) {
  let ret = paramsQuery('/manage/api/bus/aptitude/audit/get_audit_complete_creative_list', params);
  return service.post(ret.path, ret.body);
}

// 直客审核/待审核创意列表ID
export function fetchOtherCustomerAuditUnfinishedID() {
  let ret = paramsQuery('/manage/api/bus/aptitude/audit/get_wait_aptitude_id_list');
  return service.post(ret.path, ret.body);
}

// 直客审核/待审核详情
export function fetchOtherCustomerUnfinishedDetail(params) {
  let ret = paramsQuery('/manage/api/bus/aptitude/audit/get_wait_aptitude_by_id', params);
  return service.post(ret.path, ret.body);
}

// 直客审核/已审核详情
export function fetchOtherCustomerFinishedDetail(params) {
  let ret = paramsQuery('/manage/api/bus/aptitude/audit/get_audit_complete_creative', params);
  return service.post(ret.path, ret.body);
}

// 直客审核/通过
export function fetchOtherCustomerAuditPass(params) {
  let ret = paramsQuery('/manage/api/bus/aptitude/audit/audit_pass', params);
  return service.post(ret.path, ret.body);
}

// 直客审核/拒绝
export function fetchOtherCustomerAuditUnpass(params) {
  let ret = paramsQuery('/manage/api/bus/aptitude/audit/audit_unpass', params);
  return service.post(ret.path, ret.body);
}

/**
 * 权限管理
 */
// 权限管理/新增角色
export function fetchOtherRoleAdd(params) {
  let ret = paramsQuery('/manage/api/bus/permissions/menu/add_role', params);
  return service.post(ret.path, ret.body);
}
// 权限管理/获取列表
export function fetchOtherRoleMan(params) {
  let ret = paramsQuery('/manage/api/bus/permissions/menu/get_list', params);
  return service.post(ret.path, ret.body);
}
// 权限管理/查询角色
export function fetchOtherRoleDetail(params) {
  let ret = paramsQuery('/manage/api/bus/permissions/menu/get_role', params);
  return service.post(ret.path, ret.body);
}
// 权限管理/停用,启用角色
export function fetchOtherRoleStatus(params) {
  let ret = paramsQuery('/manage/api/bus/permissions/menu/status', params);
  return service.post(ret.path, ret.body);
}
// 权限管理/修改角色
export function fetchOtherRoleUpdate(params) {
  let ret = paramsQuery('/manage/api/bus/permissions/menu/update_role', params);
  return service.post(ret.path, ret.body);
}
// 权限管理/获取权限树
export function fetchOtherRoleTree() {
  let ret = paramsQuery('/manage/api/bus/permissions/menu/permissions_tree');
  return service.get(ret.path, ret.body);
}
